
public class Symbol implements Comparable<Symbol> {
	private String label;
	private int location;
	private String usage;
	private String string;
	
	public Symbol (String name, int loc, String use, String string) {
		this.label = name;
		this.location = loc;
		this.usage = use;
		this.string = string;
	}
	
	public Symbol () {
		this.label = "";
		this.location = 0;
		this.usage = "";
		this.string = "";
	}
	
	public void SetLabel (String name) {
		this.label = name;
	}
	
	public void SetLocation (int loc) {
		this.location = loc;
	}
	
	public void SetUsage (String use) {
		this.usage = use;
	}
	
	public void SetStringValue (String string) {
		this.string = string;
	}
	
	public String GetLabel () {
		return this.label;
	}
	
	public int GetLocation () {
		return this.location;
	}
	
	public String GetUsage () {
		return this.usage;
	}
	
	public String GetStringValue () {
		return this.string;
	}

	@Override
	public int compareTo(Symbol sym) {
		return this.label.compareTo(sym.GetLabel());
	}

}
